﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace AgentSystem.AgentCreator.Util
{
    /// <summary>
    /// Utilities static class.
    /// </summary>
    public static class Utils
    {
        /// <summary>
        /// Removes the special characters.
        /// </summary>
        /// <param name="inputString">The input string.</param>
        /// <returns></returns>
        public static string RemoveSpecialCharacters(string inputString)
        {
            return Regex.Replace(inputString, Constants.RegexSpecialChars, String.Empty);
        }

        /// <summary>
        /// Uppercases the first.
        /// </summary>
        /// <param name="inputString">The input string.</param>
        /// <returns></returns>
        public static string UppercaseFirst(string inputString)
        {
            if (string.IsNullOrEmpty(inputString))
            {
                return string.Empty;
            }
            return char.ToUpper(inputString[0]) + inputString.Substring(1);
        }

    }
}
